﻿@{
    ViewBag.Title = "doworknew";
}

<table class=".table-bordered" width="700" border="0" align="center" cellpadding="1" cellspacing="1" class="a2">
    <tr>
        <td height="40" class="a1">
            <p align="center"><font size="5" color="#FF0000"><b>做新作业</b></font></p>
        </td>
    </tr>
    @if (ViewData["message"].ToString() == "0")
    {  <tr>
        <td align="center" class="a3">
            <p>
                <font color="#FF0000" size="5">
                    <b>
                        已过载止日期(@ViewData["date"])，不能提交作业&nbsp;
                    </b>
                </font>
            </p>
            <p>
                <input name="btnBack" type="button" id="btnBack" value="返回" onClick="javascript:history.back();">

            </p>
        </td>
    </tr>
    }
    else {
    <tr>
        <td class="a3">
        @using (Html.BeginForm("worksave", "Student", FormMethod.Post, new { enctype ="multipart/form-data"}))
        
        {
            //       <form method="POST" enctype="multipart/form-data" name="myform" action="worksave.asp" onSubmit="return CheckForm();">

                  @Html.Hidden("add","1")
            
                <div align="center">
                    <center>
                        <table width="90%" border="0" cellpadding="1" cellspacing="1" class="a2">
                            <tr class="a3">
                                <td width="70" valign="top"><span class="style1">作业名称</span></td>
                                <td> 
                                    @ViewData["zuoyemingchen"]  
                                
                                @Html.Hidden("workid",ViewData["homeworkID"])
                                             @Html.Hidden("biaoshi",2)                 
                                     </td>
                            </tr>
                            <tr class="a3">
                                <td width="70" valign="top" class="style1">作业说明</td>
                                <td>@Html.Raw(@ViewData["zuoyemingshuoming"]) </td>
                            </tr>
                            <tr class="a3">
                                <td width="70" valign="top" class="style1">作业内容</td>
                                <td></td>
                            </tr>
                            <tr class="a3">
                                <td width="70" valign="top" class="style1">
                                    选择上传<br>
                                    文件：
                                </td>
                                <td>
                                    <input type="file" name="file1">
                                    (文件大小<font color="#FF0000"><b>小于2MB</b></font>，只允许上传<br>
                                    文件类型为 <font color="#FF0000"><b>txt/gif/jpg/swf/doc/xls/zip/rar/prg</b></font>的文件，)
                                </td>
                            </tr>
                            <tr class="a3">
                                <td width="70" valign="top" class="style1">答案说明</td>
                                <td><textarea rows="4" name="AnsMemo" cols="60"></textarea></td>
                            </tr>
                            <tr class="a3">
                                <td colspan="2">
                                    <p align="center"><input type="submit" value="提交" /><input type="reset" value="全部重写" name="B2">
                                </td>
                            </tr>
                        </table>
                    </center>
                </div>
                }
        </td>
    </tr>
    }
</table>
